home *** CD-ROM | disk | FTP | other *** search
- Path: nebula.broadvision.com!usenet
- From: phorgan@broadvision.com (Patrick Horgan)
- Newsgroups: comp.lang.c++,comp.unix.programmer
- Subject: Re: c++ static objects and fork
- Date: 29 Jan 1996 22:33:41 GMT
- Organization: The unconfigured xvnews people
- Message-ID: <4eji05$3m3@ns.broadvision.com>
- References: <4e8qu5$cmb@news02.comp.pge.com>
- Reply-To: phorgan@broadvision.com
- NNTP-Posting-Host: star.broadvision.com
-
- In article <4e8qu5$cmb@news02.comp.pge.com>, psk3@pge.com (Phillip Knight) writes:
-
- >but I also have several static objects within the program. What happens to
- >these objects after the fork? There is no exec, so they dont get created anew,
- >at least I guess this is the case...
- > Anyone have this figured out? BTW, system is HPUX v 9.04.
-
- I can't tell you the exact way HPUX does it, but I'll tell you in general the
- way it's done...the forked program gets an exact copy of all the pages containing
- static objects, as well as the heap. So...you have your own copy of the static
- object.
-
- Patrick
-
- --
- Patrick J. Horgan Broadvision Inc.
- phorgan@broadvision.com 333 Distel Circle Have horse
- Phone : (415)943-3677 Los Altos, CA 94022-1404 will ride.
- FAX : (415)934-3701 Opinions mine, not my employers except by coincidence.
-
-
-